package com.quan.common.biz.configuration;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configurable
public class WebMvcConfiguration extends WebMvcConfigurationSupport implements ApplicationContextAware {
	
	private Logger logger = LoggerFactory.getLogger(this.getClass());
	
	private ApplicationContext applicationContext ;

	@Override
	public void setApplicationContext(ApplicationContext applicationContext) {
		this.applicationContext = applicationContext ;
		logger.debug("获取ApplicationContext上下文对象：{}", this.applicationContext);
	}
	
}
